/*
========================================================================
 Name        : SingaporeBus.rss
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
NAME SING

#include <avkon.rsg>
#include <avkon.rh>
#include <eikon.rh>
#include <appinfo.rh>
#include "SingaporeBus.hrh"
#include "SingaporeBus.loc"
#include <SingaporeBus.mbg>
#include <SingaporeBus_aif.mbg>
#include <avkon.mbg>

RESOURCE RSS_SIGNATURE
	{
	}
RESOURCE TBUF
	{
	buf = "SingaporeBus";
	}
RESOURCE EIK_APP_INFO r_application_singapore_bus_app_ui
	{
	cba = R_AVKON_SOFTKEYS_EMPTY;
	status_pane = r_application_status_pane;
	}
RESOURCE STATUS_PANE_APP_MODEL r_application_status_pane
	{
	}
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
	{
	short_caption = STR_SingaporeBusApplication_4;
	caption_and_icon = CAPTION_AND_ICON_INFO
		{
		caption = STR_SingaporeBusApplication_3;
		number_of_icons = 1;
		icon_file = "\\resource\\apps\\SingaporeBus_aif.mif";
		};
	}



RESOURCE TBUF r_application_akn_view_reference4
	{
	}

RESOURCE TBUF r_application_akn_view_reference5
	{
	}

RESOURCE TBUF r_application_akn_view_reference6
	{
	}

RESOURCE DIALOG r_application_recompute_route_query
	{
	flags = EAknGeneralQueryFlags;
	buttons = R_AVKON_SOFTKEYS_YES_NO;
	items =
		{
		DLG_LINE
			{
			type = EAknCtQuery;
			id = ESingaporeBusApplicationRecomputeRouteQuery;
			control = AVKON_CONFIRMATION_QUERY
				{
				layout = EConfirmationQueryLayout;
				label = STR_SingaporeBusApplication_5;
				};
			}
		};
	}


  
  
RESOURCE AVKON_LIST_QUERY r_application_select_travel_option_query
	{
	flags = EGeneralQueryFlags;
	softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
	items =
		{
		AVKON_LIST_QUERY_DLG_LINE
			{
			control = AVKON_LIST_QUERY_CONTROL
				{
				listtype = EAknCtSinglePopupMenuListBox;
				heading = STR_SingaporeBusApplication_10;
				listbox = AVKON_LIST_QUERY_LIST
					{
					};
				};
			}
		};
	}
RESOURCE ARRAY r_application_listbox_item1
	{
	items =
		{
		LBUF
			{
			txt = STR_SingaporeBusApplication_11;
			}
		};
	}
RESOURCE ARRAY r_application_listbox_item2
	{
	items =
		{
		LBUF
			{
			txt = STR_SingaporeBusApplication_13;
			}
		};
	}



// http://www.developer.nokia.com/Community/Wiki/Querying_Numbers
RESOURCE DIALOG R_CAPTCHA_DIALOG
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
		DLG_LINE
			{
			type=EEikCtImage;
			id=1;
			control = IMAGE
				{
                bmpfile="\\resource\\apps\\SingaporeBus.mbm";
                bmpid=EMbmSingaporebusCaptcha;
                extension=0;
				};
			},
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control= AVKON_DATA_QUERY
                {
                layout = ENumberLayout;
				label = "Please solve the Captcha requested by SBS Transit:";
                control = AVKON_INTEGER_EDWIN
                    {
					unset_value = 0;
					min = 0;
					max = 999;
					maxlength = 3;
                    };
                };
            }
        };
    }

// http://www.developer.nokia.com/Community/Wiki/Querying_Strings
RESOURCE DIALOG R_PANE_NAME_DIALOG
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items=
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control= AVKON_DATA_QUERY 
                { 
                layout = EDataLayout;
                control = EDWIN
                    { 
                    flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; 
                    maxlength = 250; 
                    width = 4; 
                    lines = 1; 
                    };
                };
            }
        };
    }

RESOURCE DIALOG r_new_favorites_pane 
    { 
    flags = EGeneralQueryFlags; 
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL; 
    items = 
        { 
        DLG_LINE 
            { 
            type = EAknCtMultilineQuery; 
            id = ENewFavoritesPaneDataQuery; 
            control = AVKON_DATA_QUERY 
                { 
                layout = EMultiDataFirstEdwin; 
                label = "New pane"; 
                control = EDWIN 
                    { 
                    flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; 
                    width = 25; 
                    lines = 1; 
                    maxlength = 128; 
                    }; 
                }; 
            }
        }; 
    }

RESOURCE ARRAY r_travel_option_items
    {
  items =
    {
    LBUF { txt = "Bus + MRT"; },
    LBUF { txt = "Bus only"; }
    };
    }

RESOURCE ARRAY r_origin_option_items
    {
  items =
    {
    LBUF { txt = "Origin Bus Stop"; },
    LBUF { txt = "Current location"; }
    };
    }

RESOURCE DIALOG r_route_options
	{
	flags = EAknGeneralQueryFlags;
	buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
	items =
		{
		DLG_LINE
			{
			type = EAknCtListQueryControl;
			id = ERouteTravelOption;
			control = AVKON_DATA_QUERY
				{
				layout = EMultiDataFirstEdwin;
				label = "Travel option";
				control = AVKON_LIST_QUERY_CONTROL
					{
					listtype = EAknCtSinglePopupMenuListBox;
					heading = "Head option";
	                listbox = LISTBOX
	                    {
	                    flags = EAknListBoxSelectionList;
	                    array_id = r_travel_option_items;
	                    };
					};
				};
			},
			DLG_LINE
				{
				type = EAknCtListQueryControl;
				id = ERouteTravelOrigin;
				control = AVKON_DATA_QUERY
					{
					layout = EMultiDataFirstEdwin;
					label = "Origin";
					control = AVKON_LIST_QUERY_CONTROL
						{
						listtype = EAknCtSinglePopupMenuListBox;
						heading = "Head origin";
		                listbox = LISTBOX
		                    {
		                    flags = EAknListBoxSelectionList;
		                    array_id = r_origin_option_items;
		                    };
						};
					};
				},
		DLG_LINE
			{
			type = EAknCtQuery;
			id = ERouteTravelTime;
			control = AVKON_DATA_QUERY
				{
				layout = ETimeLayout;
				label = "Travel time";
				control = TIME_EDITOR
					{
					minTime = TIME
						{
						second = 0;
						minute = 0;
						hour = 0;
						};
					maxTime = TIME
						{
						second = 59;
						minute = 59;
						hour = 23;
						};
					flags = EEikTimeWithoutSecondsField;
					};
				};
			}
		};
	}

RESOURCE ARRAY r_stop_displaying
    {
  items =
    {
    		LBUF { txt = "1\tdo not display again"; },
			LBUF { txt = "\t"; },
			LBUF { txt = "\t"; },
			LBUF { txt = "\t"; },
    		LBUF { txt = "\t"; },
    		LBUF { txt = "\t"; }
    };
    }


RESOURCE DIALOG R_CALIBRATION_DIALOG
    {
    flags = EAknDialogGenericNoteFlags;
    buttons = R_AVKON_SOFTKEYS_CLOSE;
    items =
        {
		DLG_LINE
			{
			type=EEikCtImage;
			id=1;
			control = IMAGE
				{
                //bmpfile="\\resource\\apps\\SingaporeBus_aif.mif";
                //bmpid=EMbmSingaporebus_aifCompasscalibration;
                //bmpmask=EMbmSingaporebus_aifCompasscalibration_mask;
                //bmpfile="\\resource\\apps\\SingaporeBus.mbm";
                //bmpid=EMbmSingaporebusCompasscalibration;
                bmpfile="\\resource\\apps\\SingaporeBus.mbm";
                bmpid=EMbmSingaporebusCaptcha;
                extension=0;
                };
			},
	        DLG_LINE
	            {
	            type = EAknCtListQueryControl;
	            id = EListQueryControl;
	            control = AVKON_LIST_QUERY_CONTROL
	                {
	                listtype = EAknCtSingleGraphicPopupMenuListBox;
	                listbox = AVKON_MULTISELECTION_LIST_QUERY_LIST
	                    {
	                    array_id=r_stop_displaying;
	                    };
	                //heading = "List query test";
	                };
	            }
		};
    }


/*RESOURCE DIALOG R_ROUTE_OPTIONS
 {
 flags = EGeneralQueryFlags;
 buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
 items =
 {
 DLG_LINE
 {
 type = EAknCtListQueryControl;
 id = EListQueryControl;
 control = AVKON_LIST_QUERY_CONTROL
 {
 listtype = EAknCtSinglePopupMenuListBox;
 listbox = LISTBOX
 {
 flags = EAknListBoxMenuList;
 height = 5;
 width = 5;
 array_id = r_items;
 };
 heading = "select unit";
 };
 }
 };
 }


 RESOURCE ARRAY r_items
 {
 items =
 {
 LBUF
 {
 txt = "option 1";
 },
 LBUF
 {
 txt = "option 2";
 }
 };
 }*/

RESOURCE ARRAY r_demo_multiselection_query_list_item
{
	items =
    {
    		LBUF { txt = "Phone Number"; },
    		LBUF { txt = "Location"; },
    		LBUF { txt = "Time Zone"; }
    };
}

RESOURCE DIALOG r_use_location_dialog
	{
	flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
	buttons = R_AVKON_SOFTKEYS_YES_NO;
	items=
		{
		DLG_LINE 
			{
			type = EAknCtPopupHeadingPane;
			id = EAknMessageQueryHeaderId;
			itemflags = EEikDlgItemNonFocusing;
			control = AVKON_HEADING
				{
				label = "Access your location?";
				bmpfile = AVKON_BITMAP_FILE;
                bmpid = EMbmAvkonQgn_note_query;
                bmpmask = EMbmAvkonQgn_note_query_mask;
				};
			},
		DLG_LINE
			{
			type = EAknCtMessageQuery;
			id = EAknMessageQueryContentId;
			control = AVKON_MESSAGE_QUERY
				{
				message = "";
				};
			}
		};
	}

RESOURCE DIALOG r_use_location_dialog2
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_YES_NO;
    items =
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control = AVKON_CONFIRMATION_QUERY
                {
                layout = EConfirmationLayout;
                label = "Authorize SingaporeBus to access your location?\nThis information is used to locate nearby bus stations and is never shared.\nYou may change this option at any time from Settings";
                bmpfile = AVKON_BITMAP_FILE;
                bmpid = EMbmAvkonQgn_note_query;
                bmpmask = EMbmAvkonQgn_note_query_mask;
                };
            }
        };
    }

RESOURCE DIALOG r_use_location_dialog3
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_YES_NO;
    items =
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control = AVKON_CONFIRMATION_QUERY
                {
                layout = EConfirmationLayout;
                label = "Authorize SingaporeBus to use your location information?";
                bmpfile = AVKON_BITMAP_FILE;
                bmpid = EMbmAvkonQgn_note_query;
                bmpmask = EMbmAvkonQgn_note_query_mask;
                };
            },
            DLG_LINE
                {
                type = EAknCtQuery;
                id = 2;
                control = AVKON_CONFIRMATION_QUERY
                    {
                    layout = EConfirmationLayout;
                    label = "Authorize SingaporeBus to use your location information?";
                    };
                }
        };
    }

#include "PublicTransportMapContainer.rssi"
#include "SingaporeBusSettingItemList.rssi"
#include "SingaporeBusAccessPointsPriorityListBox.rssi"
#include "ApplicationUpdater.rssi"
#include "CSingaporeBusStopsView.rssi"
#include "CSingaporeBusServicesArrivalTimeView.rssi"
#include "CSingaporeBusRouteView.rssi"
#include "CSingaporeBusServiceRouteView.rssi"
#include "CSingaporeBusServicesView.rssi"
#include "CSingaporeBusFavoritesView.rssi"
#include "CSingaporeBusTabs.rssi"

